package com.minelx.woods.task.core.values;

import java.util.Objects;

public class FieldPathValues {
	private final String tableName;

	private final String fieldName;

	private final String comment;

	public FieldPathValues(String tableName, String fieldName, String comment) {
		this.tableName = tableName;
		this.fieldName = fieldName;
		this.comment = comment;
	}

	public String getTableName() {
		return tableName;
	}

	public String getFieldName() {
		return fieldName;
	}

	public String getComment() {
		return comment;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		FieldPathValues that = (FieldPathValues) o;
		return tableName.equals(that.tableName) && fieldName.equals(that.fieldName) && comment.equals(that.comment);
	}

	@Override
	public int hashCode() {
		return Objects.hash(tableName, fieldName, comment);
	}

	@Override
	public String toString() {
		return "FieldPathValues{" +
				"tableName='" + tableName + '\'' +
				", fieldName='" + fieldName + '\'' +
				", comment='" + comment + '\'' +
				'}';
	}
}
